package com.dys.hejiayuncommunity.common.core.domain;

/**
 * @className: com.dys.hejiayuncommunity.common.core.domain.ResultCode
 * @description: 响应状态码枚举
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/12/02 21:53
 */
public enum ResultCode {
    SUCCESS("200", "操作成功"),
    ERROR("500", "操作失败");

    /**
     * 自定义响应状态码
     */
    private String code;

    /**
     * 自定义响应结果描述
     */
    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
